﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeamNectarine.Data.Mappings;
using TeamNectarine.Models;

namespace TeamNectarine.Data
{
    public class TeamNectarineDbContext : DbContext
    {
        public TeamNectarineDbContext()
            : base("TeamNectarineDb")
        {

        }
        
        public IDbSet<User> Users { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {            
            modelBuilder.Configurations.Add(new UserMap());

            base.OnModelCreating(modelBuilder);
        }
    }
}
